package com.example.springbootdemo2023.bus.organization.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.example.springbootdemo2023.bus.organization.dto.Organization;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author GaoJingBo
 * @since 2023-04-07
 */
@Mapper
public interface OrganizationMapper extends BaseMapper<Organization> {

    IPage<Organization> pages(IPage<Organization> page, Organization organization);

    List<Organization> list(@Param("organization") Organization organization);

    int updateSonsInnerCode(@Param("oldInnerCode") String oldInnerCode,@Param("newInnerCode") String newInnerCode);
}
